package com.lucifer.d.security.config.conditional;

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

/**
 * @author Lucifer
 * @create 2024 - 06 - 12 11:38
 */
public class RedissonCondition implements Condition {
    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        Boolean enable = Boolean.valueOf(context.getEnvironment().getProperty("lucifer.security.cloud.own-center.enable"));
        return enable;
    }
}
